export default {
    namespaced: true,
    state: {
        isWebSoket:false,
        websoketData:{},
    },
    getters: {

    },
    actions: {

    },
    mutations: {
        changeData(state,obj){
            if(_.isArray(obj)){
                obj.map(item=>{
                    state[item.name]=item.value;
                })
            }else{
                state[obj.name]=obj.value;
            }
            // console.log(state.isWebSoket,'state.isWebSoket===',obj)
        }
    }
}
